<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<form action='<?=url::base(FALSE)?>auth/login' id='login' method='post'>
<fieldset>
  <legend>Авторизация пользователя</legend>
  <div id='errors'><?foreach($errors as $key=>$val):?><p><?=$key.":".$val?></p><? endforeach?></div>
  <ol>
    <li><label for='username'>login </label><input type='text' name='username' id='username' size="20" maxlength="32" /></li>
    <li><label for='password'>password </label><input type='password' name='password' id='password' size="20" maxlength="50" /></li>
    <li><input type="submit" value="Войти" /></li>
  </ol>
  <a href='<?=url::base(FALSE)?>auth/register'>Зарегистрироваться</a>
</fieldset>
</form>
